<?php
class SupplierQuote {

	public static function get($supplier_id, $ware_id){
		return Db::get('SupplierQuote')->select()->where(array('supplier_id'=>$supplier_id,'ware_id'=>$ware_id))->getOne();
	}

	public static function getQuote($supplier_id, $ware_id){
		return Db::get('SupplierQuote')->select('quote')->where(array('supplier_id'=>$supplier_id,'ware_id'=>$ware_id))->getCol();
	}

}
?>
